#ifndef _HAL_PWM_H_
#define _HAL_PWM_H_

#include "bsp.h"

struct hal_pwm_if
{
    int8_t (*sg90_pwm_init)(uint16_t ms);
    int8_t (*sg90_pwm_set)(uint16_t Angle);
    int8_t (*led_pwm_init)(uint16_t ms);
    int8_t (*led_pwm_set)(uint16_t value);
};

int8_t hal_servo_init(uint16_t ms);
int8_t hal_servo_angle_ctrl(uint16_t Angle);
int8_t hal_led_pwm_init(void);
int8_t hal_led_pwm_set(uint16_t value);
#endif
